package com.qf.springboot2.conditions;


import org.springframework.context.annotation.Conditional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Conditional(StuCondition.class)
public @interface PropertyCondition {

    //定义注解属性： useStu 属性名，类型是布尔类型， 默认值为false
    boolean useStu() default false;
}
